<%@ include file="/WEB-INF/jsp/include/head.jsp" %><%@ page language="java" pageEncoding="UTF-8"%><%@ taglib uri="http://geeksaga.com/pagination-taglib" prefix="bbs" %>
<html>
<head>
    <%@ include file="/WEB-INF/jsp/include/title.jsp" %>
    <%@ include file="/WEB-INF/jsp/include/common_css.jsp" %>
    <link rel="stylesheet" type="text/css" media="screen" href="<c:url value="/css/skin/${bbsType.bbsSkin}/default.css"/>"/>
    <%@ include file="/WEB-INF/jsp/include/common_script.jsp" %>    
    <script type="text/javascript">
    //<![CDATA[
    function serverMessage() {
        if("${serverMessage}" != "") {
            alert("${serverMessage}");
        }
    }
    //]]>
    </script>
</head>
<body>
<%@ include file="/WEB-INF/jsp/include/top.jsp" %>
    <form:form id="frmBbs" method="post" action="list.do" commandName="bbs" modelAttribute="bbs">
    <input type="hidden" id="bbsId" name="bbsId" value="${param.bbsId}"/>
    <div id="pw_content">
    <c:choose>
    <c:when test="${bbsType.bbsType == 'A00101'}">
        <jsp:include page="./skin/${bbsType.bbsSkin}/list/list.jsp" />
    </c:when>
    <c:when test="${bbsType.bbsType == 'A00102'}">
        <jsp:include page="./skin/${bbsType.bbsSkin}/image/list.jsp" />
    </c:when>
    <c:when test="${bbsType.bbsType == 'A00103'}">
        <jsp:include page="./skin/${bbsType.bbsSkin}/guestbook/list.jsp" />
    </c:when>
    <c:when test="${bbsType.bbsType == 'A00104'}">
        <jsp:include page="./skin/${bbsType.bbsSkin}/forum/list.jsp" />
    </c:when>
    <c:when test="${bbsType.bbsType == 'A00105'}">
        <jsp:include page="./skin/${bbsType.bbsSkin}/wiki/history.jsp" />
    </c:when>
    <c:otherwise>
        <jsp:include page="./skin/${bbsType.bbsSkin}/list/list.jsp" />
    </c:otherwise>
    </c:choose>    
    </div>
    </form:form>
<%@ include file="/WEB-INF/jsp/include/footer.jsp" %>
</body> 
</html>